﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@include file="../common/base.jsp"%>
<title>无标题页</title>
<link rel="stylesheet" type="text/css"
	href="${ctx}/staticweb/css/index.css">
<script language="javascript" type="text/javascript">
	function click1(num) {

		if (document.getElementById(num).style.display == "block") {
			document.getElementById(num).style.display = "none";
		} else {
			document.getElementById(num).style.display = "block";

		}

	}
</script>
</head>
<body class="mian_bj">
	<form action="${ctx}/dataShow/selSaleRecords.do" method="post">
		<div class="mian_top_01">
			<div class="mian_top_r"></div>
			<div class="mian_top_l"></div>
			<div class="mian_top_c"></div>
			<div class="mian_b">
				<div class="mian_b1">
					<p class="mian_b1_sousuo">
						<input name="shopname" placeholder="分店名" type="text"
							value="${shopname}">
					</p>
					<p class="mian_b1_sousuo">
						<input name="sbrand" placeholder="品牌" type="text"
							value="${sbrand}">
					</p>
					<p class="mian_b1_sousuo">
						<input name="smodel" placeholder="型号" type="text"
							value="${smodel}">
					</p>
					<p class="mian_b1_sousuo">
						<input name="scolor" placeholder="颜色" type="text"
							value="${scolor}">
					</p>
					<p class="mian_b1_sousuo">
						<input name="ssize" placeholder="尺码" type="text" value="${ssize}">
					</p>
					<p class="mian_b1_sousuo">
						<input name="createTime" placeholder="年月日:20170615" type="text"
							value="${createTime}">
					</p>
					<p
						style="width: 48px; height: 26px; float: left; margin-top: 13px; margin-left: 30px;">
						<button type="submit">搜索</button>
					</p>
				</div>
				<table style="margin-top: 40px;" width="100%" border="0"
					cellpadding="0" cellspacing="0" class="mian_b_bg">
					<tr>
						<td width="10%" class="mian_b_bg_lm"><span></span>分店</td>
						<td width="10%" class="mian_b_bg_lm"><span></span>品牌</td>
						<td width="5%" class="mian_b_bg_lm"><span></span>型号</td>
						<td width="7%" class="mian_b_bg_lm"><span></span>颜色</td>
						<td width="7%" class="mian_b_bg_lm"><span></span>尺码</td>
						<td width="5%" class="mian_b_bg_lm"><span></span>件数</td>
						<td width="10%" class="mian_b_bg_lm"><span></span>售出年月日</td>
						<td width="10%" class="mian_b_bg_lm"><span></span>销售员</td>
					</tr>
					<c:choose>
						<c:when test="${not empty pagination.data}">
							<c:forEach items="${pagination.data}" var="rowData">
								<tr>
									<td>${rowData.shopName}</td>
									<td>${rowData.brand}</td>
									<td>${rowData.model}</td>
									<td>${rowData.color}</td>
									<td>${rowData.size}</td>
									<td>${rowData.outCount}</td>
									<td><fmt:formatDate value="${rowData.createTime}"
											type="date" pattern="yyyy-MM-dd" /></td>
									<td>${rowData.saler}</td>
								</tr>
							</c:forEach>
						</c:when>
						<c:otherwise>
							<tr>
								<td colspan="8">没有库存</td>
							</tr>
						</c:otherwise>
					</c:choose>
				</table>
			</div>
			<div style="padding-left: 100px; margin: 10px;">${pagination.pageStr}</div>
		</div>
	</form>
</body>
</html>
